Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?

  • mcalvoca
  • mcalvoca's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #120791 by mcalvoca
i want to change {SURVEYDESCRIPTION} value for showing some text in welcome page and other text in surveys pages.
I am starting a new plugin, but i dont know how to access to {SURVEYDESCRIPTION} value in runtime.

thanks a lot
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120794 by DenisChenu
Hi,

I don't think there are a good solution actually. Maybe some bad hack ....

You can make a clean Feature request if you want.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: mcalvoca
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 11 months ago #120805 by gabrieljenik
What about some JQuery that modifies the HTML?

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120806 by DenisChenu

gabrieljenik wrote: What about some JQuery that modifies the HTML?

It's not a clean solution.

And actually : we don't know the usage of this update.

Example one : update {SURVEYDESCRIPTION} for each page of survey : just use {GROUPDESCRIPTION} at place of SURVEYDESCRIPTION.

update SURVEYDESCRIPTION according to Question answers : EM can be used here.

Etc ....

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago - 8 years 11 months ago #120823 by tpartner
DenisChenu wrote:

It's not a clean solution.

Why not?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 11 months ago by tpartner.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120824 by tpartner
Gabriel, can you give a link to a small test survey using your template?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120827 by DenisChenu

tpartner wrote: DenisChenu wrote:

It's not a clean solution.

Why not?

Javascript can be broken, user can deactivate javascript .... :)

Blind user can have difficulty with JS etc ....

:)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120828 by tpartner
I disagree, I think the internet has moved beyond a point where we can have user-friendly, feature-rich applications without JS. I suppose, if you're a purist, you could run LimeSurvey without JS but it would be pretty boring.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago - 8 years 11 months ago #120829 by DenisChenu
Hi Tony,

Yes, javascripot is done to be more user friendly. But, there are a lot of time where javascript is missused.

When i work on a website, i like to have :
1st : a good semantic system
2nd : a good usuability out of the box.
3rd : after i go to the look and feal, and here : all javascrit system can be used.

Some staring point en.wikipedia.org/wiki/Semantic_Web en.wikipedia.org/wiki/Usability etc ...; but i know better French website ;).


Actually, in LimeSurvey we don't need any plugin to update Description.
Just a
<script>
$(".survey-description").html("My own description");
</script>

Is OK.

But i really think this can be done without js and more easily done directly using LimeSurvey.
Actually : mcalvoca don't tell us why he want to update SURVEYDESCRITION ? What for ?

Depend of the need : survey manager can easily update or not the system :).

Denis
PS: don't remind it too : but test with a bad connection some website give an idea too.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 8 years 11 months ago by DenisChenu.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120830 by tpartner
Thanks, I don't think I need any tips on how to develop websites.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 11 months ago #120831 by gabrieljenik
The example that Dennis gave below is what I meant.

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose